﻿<%@ Page Title="Payment Level Master" Language="C#" MasterPageFile="~/AuditBillingMaster.master" AutoEventWireup="true" CodeFile="PaymentLevelMaster.aspx.cs" Inherits="PaymentLevelMaster" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../JS/Forms/jsPaymentLevelMaster.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cntList" runat="Server">
    <asp:HiddenField runat="server" ID="hdnExportToExcelFilePath" ClientIDMode="Static" />
    <input type="hidden" id="hdnPaymentLevelID" runat="server" value="0" clientidmode="Static" />
    <div class="pagecontent">
        <div class="headercontainer">
            <div class="headertextcontainer halfpanel">
                Payment Level Master
            </div>
            <div class="headerbuttoncontainer halfpanel">
                <a id="A1" href='javascript:void(0);' onclick="toggle_TopContainer();" tabindex="5" class="headersearchbutton" title="Toggle Search Panel" runat="server">Search</a>&nbsp;&nbsp;<a
                    runat="server" href='javascript:void(0);' id="lnkAdd" tabindex="6" clientidmode="Static" class="headeraddbutton" title="Add Company"
                    onclick='javascript:ShowEditDiv(0,this);'>Add Payment Level</a>
                <a href="#" onclick="fn_ExportToExcel();" class="headerexportbutton">Export To Excel</a>

            </div>
        </div>
        <div id="divTopContainer" class="topcontainerwrapper">
            <div class="topcontainerSmall" onkeypress="javascript:return fireDefaultButton(event, 'btnSearch')">
                <div class="halfpanel">
                    <div class="row">
                        <asp:TextBox ID="txtSearchPaymentLevelName" runat="server" ClientIDMode="Static" MaxLength="50"
                            TabIndex="1" CssClass="searchCntrl" placeholder="Payment Level Name"></asp:TextBox>
                    </div>
                </div>
                <div class="halfpanel">
                    <div class="row">
                        <asp:DropDownList ID="cboStatus" ClientIDMode="Static" runat="server" TabIndex="2"
                            CssClass="searchCntrl" Width="70%">
                            <asp:ListItem Value="2" Text="Both"></asp:ListItem>
                            <asp:ListItem Value="1" Text="Active"></asp:ListItem>
                            <asp:ListItem Value="0" Text="InActive"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="fullpanel textalignright">
                    <a tabindex="3" class="btn-search-clear" onclick="clear_form_elements('divTopContainer');" onkeypress="clear_form_elements_ForTab(event,'divTopContainer');" href="javascript:void(0);">Clear</a>
                    <input type="button" id="btnSearch" tabindex="3" class="btn-search" onclick="javascript: return fn_GetSearchResult(0);"
                        value="Search" title="Search" />
                </div>
            </div>
            <a href='javascript:void(0);' class="closedivSmall" onclick="toggle_TopContainer();" title="Toggle Search Panel" tabindex="4"><i class="fa fa-chevron-up"></i></a>
        </div>
        <div class="maincontainer">
            <div class="listpagediv" id="divResult">
                <asp:GridView ID="grdResult" runat="server" ClientIDMode="Static" AutoGenerateColumns="false" Width="70%" CssClass="listdiv" DataKeyNames="PaymentModeID" OnRowDataBound="grdResult_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="PaymentLevelID" HeaderText="Payment Level Id" />
                        <asp:BoundField DataField="PaymentModeID" HeaderText="Payment Mode Id" />
                        <asp:BoundField HeaderText="Sr." ItemStyle-HorizontalAlign="Center" />
                        <asp:TemplateField HeaderText="Action" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <a class="btn-edit" href="javascript:void(0);" onclick="return ShowEditDiv(1,this);" title="Edit"><i class="fa fa-pencil" title="Edit"></i></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="PaymentModeName" HeaderText="Payment Mode Name" />
                        <asp:BoundField DataField="Name" HeaderText="Payment Level Name" />
                        <asp:BoundField DataField="Abbriviation" HeaderText="Abbriviation" />
                        <asp:BoundField DataField="Percentage" HeaderText="Percentage" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField DataField="PropDurationInMonth" HeaderText="Prop. Dur. in Months" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField DataField="LevelSort" HeaderText="Sort Order" ItemStyle-HorizontalAlign="Center" />
                        <asp:TemplateField HeaderText="Status" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%#(Convert.ToBoolean(Eval("IsActive")) == true ? "Active" : "InActive") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>

        </div>
    </div>
    <div class="modalopenConfirmDel modalopenPaymentLevel" style="display: none;">
    </div>

    <div id="divInsertEdit" class="modalPaymentLevel" onkeypress="javascript:return fireDefaultButton(event, 'btnSave')">
        <div class="form">
            <div class="innercontent">
                <div class="halfpanel">
                    <div class="row">
                        <div class="midium-label">
                            Payment Mode&nbsp;&nbsp;<span class="red">*</span>
                        </div>
                        <div class="midium-value">
                            <asp:DropDownList ID="cboPaymentMode" ClientIDMode="Static" runat="server" TabIndex="101" CssClass="searchCntrl" Width="70%"
                                DataValueField="PaymentModeID" DataTextField="PaymentModeName">
                                <asp:ListItem Value="0" Text="[Select Payment Mode]"></asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rfvcboPaymentMode" runat="server" Display="Dynamic" ClientIDMode="Static"
                                ControlToValidate="cboPaymentMode" ValidationGroup="vgSave" ErrorMessage="Select Payment Mode" InitialValue="0"
                                Width="90%"><span class="error">Select payment mode</span></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="row">
                        <div class="midium-label">
                            Name&nbsp;&nbsp;<span class="red">*</span>
                        </div>
                        <div class="midium-value">
                            <asp:TextBox ID="txtPaymentLevelName" runat="server" ClientIDMode="Static" Width="97%"
                                MaxLength="50" placeholder="Enter Payment Level" CssClass="input" TabIndex="102"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtPaymentLevelName" runat="server" Display="Dynamic" ClientIDMode="Static"
                                ControlToValidate="txtPaymentLevelName" ValidationGroup="vgSave" ErrorMessage="Enter Payment Level"
                                Width="90%"><span class="error">Enter payment level</span></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvtxtPaymentLevelName" runat="server" ClientIDMode="Static" ControlToValidate="txtPaymentLevelName"
                                ClientValidationFunction="fn_ValidateExpressionTextbox" ValidationGroup="vgSave" ValidateEmptyText="false" expressionid="AlpNumSplChar"
                                Display="Dynamic" Width="90%"><span id="spnFirstName" class="error"></span></asp:CustomValidator>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="row">
                        <div class="midium-label">
                            Percentage&nbsp;&nbsp;<span class="red">*</span>
                        </div>
                        <div class="midium-value">
                            <asp:TextBox ID="txtPercentage" runat="server" ClientIDMode="Static" Width="97%"
                                MaxLength="50" placeholder="Enter Percentage" CssClass="input" TabIndex="104"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtPercentage" runat="server" Display="Dynamic" ClientIDMode="Static"
                                ControlToValidate="txtPercentage" ValidationGroup="vgSave" ErrorMessage="Enter Percentage"
                                Width="90%"><span class="error">Enter percentage</span></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvtxtPercentage" runat="server" ClientIDMode="Static" ControlToValidate="txtPercentage"
                                ClientValidationFunction="fn_ValidateExpressionTextbox" ValidationGroup="vgSave" ValidateEmptyText="false" expressionid="NumDel"
                                Display="Dynamic" Width="90%"><span id="Span1" class="error"></span></asp:CustomValidator>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="row">
                        <div class="midium-label">
                            Sort Order&nbsp;&nbsp;<span class="red">*</span>
                        </div>
                        <div class="midium-value">
                            <asp:TextBox ID="txtSortOrder" runat="server" ClientIDMode="Static" Width="97%"
                                MaxLength="50" placeholder="Enter Sort Order" CssClass="input" TabIndex="106"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtSortOrder" runat="server" Display="Dynamic" ClientIDMode="Static"
                                ControlToValidate="txtSortOrder" ValidationGroup="vgSave" ErrorMessage="Enter Sort Order"
                                Width="90%"><span class="error">Enter sort order</span></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvtxtSortOrder" runat="server" ClientIDMode="Static" ControlToValidate="txtSortOrder"
                                ClientValidationFunction="fn_ValidateExpressionTextbox" ValidationGroup="vgSave" ValidateEmptyText="false" expressionid="Num"
                                Display="Dynamic" Width="90%"><span id="Span2" class="error"></span></asp:CustomValidator>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="halfpanel">
                    <div class="row">
                        &nbsp;
                    </div>
                    <div class="clear"></div>
                    <div class="row">
                        <div class="midium-label">
                            Abbreviation&nbsp;&nbsp;<span class="red">*</span>
                        </div>
                        <div class="midium-value">
                            <asp:TextBox ID="txtAbbreviation" runat="server" ClientIDMode="Static" Width="97%"
                                MaxLength="50" placeholder="Enter Abbriviation" CssClass="input" TabIndex="103"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtAbbreviation" runat="server" Display="Dynamic" ClientIDMode="Static"
                                ControlToValidate="txtAbbreviation" ValidationGroup="vgSave" ErrorMessage="Enter Abbreviation"
                                Width="90%"><span class="error">Enter payment level</span></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvtxtAbbreviation" runat="server" ClientIDMode="Static" ControlToValidate="txtAbbreviation"
                                ClientValidationFunction="fn_ValidateExpressionTextbox" ValidationGroup="vgSave" ValidateEmptyText="false" expressionid="AlpNumSplChar"
                                Display="Dynamic" Width="90%"><span id="Span4" class="error"></span></asp:CustomValidator>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="row">
                        <div class="midium-label">
                            Prop. Dur. in Months&nbsp;&nbsp;<span class="red">*</span>
                        </div>
                        <div class="midium-value">
                            <asp:TextBox ID="txtPropDuration" runat="server" ClientIDMode="Static" Width="97%"
                                MaxLength="50" placeholder="Enter Proposed Duration in Months" CssClass="input" TabIndex="105"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtPropDuration" runat="server" Display="Dynamic" ClientIDMode="Static"
                                ControlToValidate="txtPropDuration" ValidationGroup="vgSave" ErrorMessage="Enter Prop. Dur. in Months"
                                Width="90%"><span class="error">Enter prop. dur. in months</span></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvtxtPropDuration" runat="server" ClientIDMode="Static" ControlToValidate="txtPropDuration"
                                ClientValidationFunction="fn_ValidateExpressionTextbox" ValidationGroup="vgSave" ValidateEmptyText="false" expressionid="Num"
                                Display="Dynamic" Width="90%"><span id="Span3" class="error"></span></asp:CustomValidator>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="row">
                        <div class="midium-label">
                            Is Active
                        </div>
                        <div class="midium-value">
                            <asp:CheckBox ID="chkIsActive" runat="server" ClientIDMode="Static" TabIndex="107" />
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
                <div class="pagefooter">
                    <center>
                        <input type="button" id="btnSave" onclick="javascript: return fn_SaveDetails();"
                            tabindex="108" value="Save" validationgroup="vgSave" class="btn-primary" />
                    </center>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cntMain" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FootContent" runat="Server">
</asp:Content>

